// CadSettings.cpp
//
#include "CadSettings.h"


// ------------------------------------------------------------------------------------------------
CadSettings::CadSettings()
{
	_defaultObjColor = OpenGL::Color(.5f,.5f,.5f,1.f);
	_selectedColor   = OpenGL::Color(.5f,.5f,.5f,1.f);
	_hilightedColor  = OpenGL::Color(.5f,.5f,.5f,1.f);
	_previewColor    = OpenGL::Color(.5f,.5f,.5f,1.f);
	_snapPointColor  = OpenGL::Color(.5f,.5f,.5f,1.f);
}

// ------------------------------------------------------------------------------------------------
CadSettings::~CadSettings()
{}

// ------------------------------------------------------------------------------------------------
CadSettings CadSettings::defaults() // [static]
{
	return CadSettings();
}

// ------------------------------------------------------------------------------------------------
OpenGL::Color CadSettings::defaultObjColor() const	{ return _defaultObjColor; }
OpenGL::Color CadSettings::selectedColor()   const	{ return _selectedColor;   }
OpenGL::Color CadSettings::hilightedColor()  const	{ return _hilightedColor;  }
OpenGL::Color CadSettings::previewColor()    const	{ return _previewColor;    }
OpenGL::Color CadSettings::snapPointColor()  const	{ return _snapPointColor;  }

// ------------------------------------------------------------------------------------------------
void CadSettings::setDefaultObjColor ( const OpenGL::Color &c ) { _defaultObjColor = c; }
void CadSettings::setSelectedColor   ( const OpenGL::Color &c ) { _selectedColor   = c; }
void CadSettings::setHilightedColor  ( const OpenGL::Color &c ) { _hilightedColor  = c; }
void CadSettings::setPreviewColor    ( const OpenGL::Color &c ) { _previewColor    = c; }
void CadSettings::setSnapPointColor  ( const OpenGL::Color &c ) { _snapPointColor  = c; }